<?php

/**
 * SvnForm class.
 * SvnForm is the data structure for keeping
 * svn form data. It is used by the 'svn' action of 'SiteController'.
 */
class SvnForm extends CFormModel
{
	public $svnname;
	public $svnpass;
	public $comment;
	public $action;
	/**
	 * Declares the validation rules.
	 */
	public function rules()
	{
		return array(
			// name, email, subject and body are required
			array('svnname,svnpass,action', 'required'),
			array('comment','default'),
		);
	}

	/**
	 * Declares customized attribute labels.
	 * If not declared here, an attribute would have a label that is
	 * the same as its name with the first letter in upper case.
	 */
	public function attributeLabels()
	{
		return array(
		);
	}
}
